package com.cy.service;

import com.cy.factory.RemoteFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "sca-provider",
        contextId = "remoteProviderService",
        fallbackFactory = RemoteFallbackFactory.class)
public interface RemoteProviderService {
    @GetMapping("/provider/echo/{msg}")//provider里写的什么就传过来什么
    public String echoMessage(@PathVariable("msg") String msg);
}
